package com.jz.beijianbao.price.mapper;

import com.jz.beijianbao.beijian.bean.BeiJian;
import com.jz.beijianbao.beijian.bean.BeiJianSelectVo;
import com.jz.beijianbao.legalperson.bean.LegalPerson;
import com.jz.beijianbao.price.bean.Price;
import com.jz.beijianbao.price.bean.PriceSelectVo;
import com.jz.beijianbao.price.bean.SparePersonVo;
import com.jz.beijianbao.price.bean.TaxVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PriceMapper {

    @Select("select id,legalPersonCode,legalPersonName from legalperson")
    List<LegalPerson> queryPerson();
    @Select("select * from taxtype")
    List<TaxVo> queryHanShui();

    List<Price> queryPage(PriceSelectVo priceSelectVo);

    int queryCount(PriceSelectVo priceSelectVo);

    List<SparePersonVo> querySparePerson(@Param("codeList") List<String> codeList);

    List<BeiJian> querySearchEnabled(BeiJianSelectVo spareSelectVo);

    int count(BeiJianSelectVo spareSelectVo);
}
